package com.lagou.edu.wwyan.web1.minicat;

import java.util.ArrayList;
import java.util.List;

public class Context implements LifeCycle{

    private String path;
    private String docBase;
    private List<Wrapper> wrappers = new ArrayList<>();

    public Context() {
    }


    public Context(String path, String docBase) {
        this.path = path;
        this.docBase = docBase;
    }

    public List<Wrapper> getWrappers() {
        return wrappers;
    }

    public void addWrapper(Wrapper wrapper){
        this.wrappers.add(wrapper);
    }
    public void setWrappers(List<Wrapper> wrappers) {
        this.wrappers.addAll(wrappers) ;
    }
    public  void add(Wrapper wrapper){
        this.wrappers.add(wrapper);
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getDocBase() {
        return docBase;
    }

    public void setDocBase(String docBase) {
        this.docBase = docBase;
    }

    @Override
    public void init() throws Exception {

    }

    @Override
    public void start() throws Exception {

    }
}
